using Unity.Entities;
using UnityEngine;

namespace DOTS.DOD.LESSON1
{
    /// <summary>
    /// 蓝色Cube标记组件
    /// </summary>
    struct BlueCubeTag : IComponentData
    {
    }

    public class BlueCubeTagAuthoring : MonoBehaviour
    {
        public class Baker : Baker<BlueCubeTagAuthoring>
        {
            public override void Bake(BlueCubeTagAuthoring authoring)
            {
                var entity = GetEntity(TransformUsageFlags.None);
                var blueCubeTag = new BlueCubeTag();
                AddComponent(entity, blueCubeTag);
            }
        }
    }
}